/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #444;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
}

button, .btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover, .btn:hover {
    background-color: #45a049;
}

/* 错误和成功消息 */
.error {
    color: #d9534f;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #d9534f;
    border-radius: 4px;
    background-color: #f2dede;
}

.success {
    color: #5cb85c;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #5cb85c;
    border-radius: 4px;
    background-color: #dff0d8;
}

/* 帖子列表 */
.post-list {
    margin-top: 20px;
}

.post-item, .reply-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.post-meta, .reply-meta {
    font-size: 0.9em;
    color: #777;
    margin: 5px 0;
}

.post-content, .reply-content {
    margin: 10px 0;
}

.post-actions, .reply-actions {
    margin-top: 10px;
}

/* 操作按钮 */
.actions {
    margin: 15px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
}